package com.ftwj.demo.modular.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.ftwj.demo.base.annotation.Column;
import com.ftwj.demo.base.annotation.Ignore;
import com.ftwj.demo.base.annotation.Logic;
import com.ftwj.demo.base.annotation.Order;
import com.ftwj.demo.base.annotation.Primarykey;
import com.ftwj.demo.base.annotation.QueryTable;
import com.ftwj.demo.base.annotation.Table;
import com.ftwj.demo.base.annotation.Transient;
import com.ftwj.demo.base.constant.Const;
import com.ftwj.demo.base.constant.QueryModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
* <p>Title: MessageBean</p>  
* <p>Description: 描述</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSli
* @date 2020年04月10日 09:28:29
* @version V1.0
*/
@Data
@Table(name="tb_message")
@Accessors(chain=true)
@ApiModel(value="MessageBean对象", description="")
public class MessageBean implements Serializable {

	/** serialVersionUID*/ 
	@Ignore
	private static final long serialVersionUID = 1L;
	
 	@Primarykey(name="mess_id")
	private Integer messId;
	@ApiModelProperty(value = "调用的模块")
	private String modular;
	@ApiModelProperty(value = "消息标题")
	private String title;
	@ApiModelProperty(value = "信息内容")
	@QueryTable(model=QueryModel.ALL_LIKE)
	private String content;
	@Order(sort=0,order=Const.ORDER_DESC)
	@ApiModelProperty(value = "优先级")
	private Integer sort;
	@ApiModelProperty(value = "链接")
	private String url;
	@Column(name="create_user")
	@ApiModelProperty(value = "创建人")
	private Integer createUser;
	@Column(name="create_time")
	@Order(sort=1,order=Const.ORDER_DESC)
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	@ApiModelProperty(value = "信息状态（1:正常，-1:已删除）")
	@Logic
	private Integer state;
	
	@Transient
	private String username;
	@Transient
	private List<Integer> userIdList;
	@Transient
	private List<String> files;
	
	
}